# Contributor: Klemens Nanni <kl3@posteo.org>
# Maintainer:
pkgname=lzlib
pkgver=1.13
pkgrel=2
pkgdesc="Library for the lzip compression file format"
url="http://www.nongnu.org/lzip/lzlib.html"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc $pkgname-dev"
source="https://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
b9c4e5a9aca982984b497d1da2e1f0439b37b19acaf88a02f5af114b0a65a828c5ae235b3bd4f419ce001963de38a4d03445a6a1bd93f37e783e799abd75578d  lzlib-1.13.tar.gz
"
